package com.lin.learning.questionmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lin.learning.questionmanagement.dto.AddQuestionDto;
import com.lin.learning.questionmanagement.dto.GetQuestionsDto;
import com.lin.learning.questionmanagement.dto.UpdateQuestionDto;
import com.our.learning.infrastructure.po.Question;
import com.our.learning.infrastructure.pojo.ResponseResult;

import java.util.List;

public interface QuestionService extends IService<Question> {
    ResponseResult questionList(Integer page, Integer perPage,Integer id,String type);
    ResponseResult addQuestion(AddQuestionDto addQuestionDto);
    ResponseResult deleteQuestion(Integer id);
    ResponseResult updateQuestion(UpdateQuestionDto updateQuestionDto);
    ResponseResult getQuestionById(Integer id);
    ResponseResult getQuestions(GetQuestionsDto getQuestionsDto);
    ResponseResult getQuestionsByType(Integer page, Integer perPage,String type);
    Question getQuestionByIdLocal(Integer id);
    List getQuestionByIdsLocal(List id);
    List<Question> getQuestionByTypeAndDifficultyLocal(String type, Integer difficulty);
    String getTypeByIdLocal(Integer id);
}
